package com.kay.dao;

import com.kay.pojo.User;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @Description:
 * @Author: Kay
 * @CreateDate: 2021/6/27$ 10:29$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/6/27$ 10:29$
 */
public interface UserMapper extends Mapper<User> { // MyBatis使用通用mapper extends Mapper<User>
    void insertOne(User user);

    void updateUsername(User user);

    void deleteById(Integer id);

    List<User> findByCondition(User user);

    List<User> findAllUserOrderList();

    List<User> findAllUserRoleList();

    List<User> findUserRoleListByIds(int[] ids);

    User findById(Integer id);
}
